| 200 |
How can I align the column to the right
|
| 199 |
How do I change the column's caption
|
| 198 |
Can I change the visual effect, appearance for the anchor, hyperlink elements, in HTML captions, after the user clicks it
with G2antt1 do begin FormatAnchor[False] := '<b><u><fgcolor=880000> </fgcolor></u></b>'; Columns.Add('Column'); with Items do begin CellValueFormat[OleVariant(AddItem('Just an <a1>anchor</a> element ...')),OleVariant(0)] := EXG2ANTTLib_TLB.exHTML; end; with Items do begin CellValueFormat[OleVariant(AddItem('Just another <a2>anchor</a> element ...')),OleVariant(0)] := EXG2ANTTLib_TLB.exHTML; end; Items.AddItem('next item'); end |
| 197 |
Can I change the visual effect, appearance for the anchor, hyperlink elements, in HTML captions
with G2antt1 do begin FormatAnchor[True] := '<b><u><fgcolor=FF0000> </fgcolor></u></b>'; Columns.Add('Column'); with Items do begin CellValueFormat[OleVariant(AddItem('Just an <a1>anchor</a> element ...')),OleVariant(0)] := EXG2ANTTLib_TLB.exHTML; end; with Items do begin CellValueFormat[OleVariant(AddItem('Just another <a2>anchor</a> element ...')),OleVariant(0)] := EXG2ANTTLib_TLB.exHTML; end; end |
| 196 |
Can I change the font for the tooltip
|
| 195 |
Can I change the font for the tooltip
with G2antt1 do begin ToolTipDelay := 1; with ToolTipFont do begin Name := 'Tahoma'; Size := 14; end; ToolTipWidth := 364; (IUnknown(Columns.Add('tootip')) as EXG2ANTTLib_TLB.Column).ToolTip := 'this is a tooltip assigned to a column'; end |
| 194 |
Can I change the order of the buttons in the scroll bar
with G2antt1 do begin ScrollOrderParts[EXG2ANTTLib_TLB.exHScroll] := 't,l,r'; ScrollOrderParts[EXG2ANTTLib_TLB.exVScroll] := 't,l,r'; ScrollBars := EXG2ANTTLib_TLB.exDisableBoth; end |
| 193 |
The thumb size seems to be very small. Can I make it bigger
with G2antt1 do begin ColumnAutoResize := False; (IUnknown(Columns.Add('C1')) as EXG2ANTTLib_TLB.Column).Width := 256; (IUnknown(Columns.Add('C2')) as EXG2ANTTLib_TLB.Column).Width := 256; (IUnknown(Columns.Add('C3')) as EXG2ANTTLib_TLB.Column).Width := 256; ScrollThumbSize[EXG2ANTTLib_TLB.exHScroll] := 64; end |
| 192 |
How can I display my text on the scroll bar, using a different font
with G2antt1 do begin ScrollPartCaption[EXG2ANTTLib_TLB.exHScroll,EXG2ANTTLib_TLB.exThumbPart] := 'This is <s><font Tahoma;12> just </font></s> text'; ColumnAutoResize := False; ScrollHeight := 20; (IUnknown(Columns.Add('C1')) as EXG2ANTTLib_TLB.Column).Width := 256; (IUnknown(Columns.Add('C2')) as EXG2ANTTLib_TLB.Column).Width := 256; (IUnknown(Columns.Add('C3')) as EXG2ANTTLib_TLB.Column).Width := 256; end |
| 191 |
How can I display my text on the scroll bar, using a different font
with G2antt1 do begin ScrollPartCaption[EXG2ANTTLib_TLB.exHScroll,EXG2ANTTLib_TLB.exThumbPart] := 'This is just a text'; ScrollFont[EXG2ANTTLib_TLB.exHScroll].Size := 12; ColumnAutoResize := False; ScrollHeight := 20; (IUnknown(Columns.Add('C1')) as EXG2ANTTLib_TLB.Column).Width := 256; (IUnknown(Columns.Add('C2')) as EXG2ANTTLib_TLB.Column).Width := 256; (IUnknown(Columns.Add('C3')) as EXG2ANTTLib_TLB.Column).Width := 256; end |
| 190 |
How can I display my text on the scroll bar
with G2antt1 do begin ScrollPartCaption[EXG2ANTTLib_TLB.exHScroll,EXG2ANTTLib_TLB.exThumbPart] := 'this is just a text'; ColumnAutoResize := False; (IUnknown(Columns.Add('C1')) as EXG2ANTTLib_TLB.Column).Width := 256; (IUnknown(Columns.Add('C2')) as EXG2ANTTLib_TLB.Column).Width := 256; (IUnknown(Columns.Add('C3')) as EXG2ANTTLib_TLB.Column).Width := 256; end |
| 189 |
How do I enlarge or change the size of the control's scrollbars
with G2antt1 do begin ScrollHeight := 18; ScrollWidth := 18; ScrollButtonWidth := 18; ScrollButtonHeight := 18; ScrollBars := EXG2ANTTLib_TLB.exDisableBoth; end |
| 188 |
How do I assign a tooltip to a scrollbar
with G2antt1 do begin ScrollToolTip[EXG2ANTTLib_TLB.exHScroll] := 'This is a tooltip being shown when you click and drag the thumb in the horizontal scroll bar'; ColumnAutoResize := False; (IUnknown(Columns.Add('C1')) as EXG2ANTTLib_TLB.Column).Width := 256; (IUnknown(Columns.Add('C2')) as EXG2ANTTLib_TLB.Column).Width := 256; (IUnknown(Columns.Add('C3')) as EXG2ANTTLib_TLB.Column).Width := 256; end |
| 187 |
How do I assign an icon to the button in the scrollbar
|
| 186 |
I need to add a button in the scroll bar. Is this possible
with G2antt1 do begin ScrollPartVisible[EXG2ANTTLib_TLB.exHScroll,EXG2ANTTLib_TLB.exLeftB1Part] := True; ScrollPartCaption[EXG2ANTTLib_TLB.exHScroll,EXG2ANTTLib_TLB.exLeftB1Part] := '1'; ScrollBars := EXG2ANTTLib_TLB.exDisableNoHorizontal; end |
| 185 |
Can I display an additional buttons in the scroll bar
with G2antt1 do begin ScrollPartVisible[EXG2ANTTLib_TLB.exHScroll,EXG2ANTTLib_TLB.exLeftB1Part] := True; ScrollPartVisible[EXG2ANTTLib_TLB.exHScroll,EXG2ANTTLib_TLB.exLeftB2Part] := True; ScrollPartVisible[EXG2ANTTLib_TLB.exHScroll,EXG2ANTTLib_TLB.exRightB6Part] := True; ScrollPartVisible[EXG2ANTTLib_TLB.exHScroll,EXG2ANTTLib_TLB.exRightB5Part] := True; ScrollBars := EXG2ANTTLib_TLB.exDisableNoHorizontal; end |
| 184 |
Can I display the picture aligned to the right, while the text aligned to the left
|
| 183 |
How can I display a custom size picture to a cell or item
|
| 182 |
How can I display a multiple pictures to a cell or item
with G2antt1 do begin DefaultItemHeight := 48; HTMLPicture['pic1'] := 'c:\exontrol\images\zipdisk.gif'; HTMLPicture['pic2'] := 'c:\exontrol\images\auction.gif'; Columns.Add('C1'); with Items do begin CellValueFormat[OleVariant(AddItem('<img>pic1</img> Text <img>pic2</img> another text ...')),OleVariant(0)] := EXG2ANTTLib_TLB.exHTML; end; end |
| 181 |
How do I change the column's foreground color for numbers between an interval - Range
with G2antt1 do begin with ConditionalFormats.Add('dbl(%0) >= 2 and dbl(%0) <= 10',Null) do begin Bold := True; ForeColor := $ff; ApplyTo := EXG2ANTTLib_TLB.FormatApplyToEnum($1); end; Columns.Add('N1'); Columns.Add('N2'); with Items do begin CellValue[OleVariant(AddItem(OleVariant(1))),OleVariant(1)] := OleVariant(2); end; with Items do begin CellValue[OleVariant(AddItem(OleVariant(3))),OleVariant(1)] := OleVariant(3); end; with Items do begin CellValue[OleVariant(AddItem(OleVariant(10))),OleVariant(1)] := OleVariant(11); end; with Items do begin CellValue[OleVariant(AddItem(OleVariant(13))),OleVariant(1)] := OleVariant(31); end; SearchColumnIndex := 1; end |
| 180 |
How do I change the item's foreground color for numbers between an interval - Range
with G2antt1 do begin ConditionalFormats.Add('dbl(%0) >= 2 and dbl(%0) <= 10',Null).ForeColor := $ff; Columns.Add('Numbers'); Items.AddItem(OleVariant(1)); Items.AddItem(OleVariant(2)); Items.AddItem(OleVariant(10)); Items.AddItem(OleVariant(20)); end |
| 179 |
How do I change the item's background color for numbers less than a value
with G2antt1 do begin ConditionalFormats.Add('dbl(%0) < 10',Null).BackColor := $ff; Columns.Add('Numbers'); Items.AddItem(OleVariant(1)); Items.AddItem(OleVariant(2)); Items.AddItem(OleVariant(10)); Items.AddItem(OleVariant(20)); end |
| 178 |
How do I underline the numbers greater than a value
with G2antt1 do begin ConditionalFormats.Add('dbl(%0) >= 10',Null).Underline := True; Columns.Add('Numbers'); Items.AddItem(OleVariant(1)); Items.AddItem(OleVariant(2)); Items.AddItem(OleVariant(10)); Items.AddItem(OleVariant(20)); end |
| 177 |
How do I highlight in italic the numbers greater than a value
with G2antt1 do begin ConditionalFormats.Add('dbl(%0) >= 10',Null).StrikeOut := True; Columns.Add('Numbers'); Items.AddItem(OleVariant(1)); Items.AddItem(OleVariant(2)); Items.AddItem(OleVariant(10)); Items.AddItem(OleVariant(20)); end |
| 176 |
How do I highlight in italic the numbers greater than a value
with G2antt1 do begin ConditionalFormats.Add('dbl(%0) >= 10',Null).Italic := True; Columns.Add('Numbers'); Items.AddItem(OleVariant(1)); Items.AddItem(OleVariant(2)); Items.AddItem(OleVariant(10)); Items.AddItem(OleVariant(20)); end |
| 175 |
How do I highlight in bold the numbers greater than a value
with G2antt1 do begin ConditionalFormats.Add('dbl(%0) >= 10',Null).Bold := True; Columns.Add('Numbers'); Items.AddItem(OleVariant(1)); Items.AddItem(OleVariant(2)); Items.AddItem(OleVariant(10)); Items.AddItem(OleVariant(20)); end |
| 174 |
Can I use your EBN files to change the visual appearance for +/- expand - collapse buttons
|
| 173 |
Can I use your EBN files to change the visual appearance for radio buttons
|
| 172 |
Can I use your EBN files to change the visual appearance for checkbox cells
|
| 171 |
How do I change the visual aspect for thumb parts in the scroll bars, using EBN
with G2antt1 do begin BeginUpdate(); with VisualAppearance do begin Add(1,'c:\exontrol\images\normal.ebn'); Add(2,'c:\exontrol\images\pushed.ebn'); Add(3,'c:\exontrol\images\hot.ebn'); end; Background[EXG2ANTTLib_TLB.exHSThumb] := $1000000; Background[EXG2ANTTLib_TLB.exHSThumbP] := $2000000; Background[EXG2ANTTLib_TLB.exHSThumbH] := $3000000; Background[EXG2ANTTLib_TLB.exVSThumb] := $1000000; Background[EXG2ANTTLib_TLB.exVSThumbP] := $2000000; Background[EXG2ANTTLib_TLB.exVSThumbH] := $3000000; ScrollBars := Integer(EXG2ANTTLib_TLB.exVScrollEmptySpace) Or Integer(EXG2ANTTLib_TLB.exHScrollEmptySpace) Or Integer(EXG2ANTTLib_TLB.exVScrollOnThumbRelease) Or Integer(EXG2ANTTLib_TLB.exHScrollOnThumbRelease) Or Integer(EXG2ANTTLib_TLB.exDisableBoth); ScrollBySingleLine := True; Columns.Add('Def'); with Items do begin AddItem(OleVariant(1)); AddItem(OleVariant(2)); AddItem(OleVariant(3)); end; EndUpdate(); end |
| 170 |
How do I change the visual aspect only for the thumb in the scroll bar, using EBN
with G2antt1 do begin BeginUpdate(); with VisualAppearance do begin Add(1,'c:\exontrol\images\normal.ebn'); Add(2,'c:\exontrol\images\pushed.ebn'); Add(3,'c:\exontrol\images\hot.ebn'); end; Background[EXG2ANTTLib_TLB.exHSThumb] := $1000000; Background[EXG2ANTTLib_TLB.exHSThumbP] := $2000000; Background[EXG2ANTTLib_TLB.exHSThumbH] := $3000000; ScrollBars := Integer(EXG2ANTTLib_TLB.exVScrollEmptySpace) Or Integer(EXG2ANTTLib_TLB.exHScrollEmptySpace) Or Integer(EXG2ANTTLib_TLB.exVScrollOnThumbRelease) Or Integer(EXG2ANTTLib_TLB.exHScrollOnThumbRelease) Or Integer(EXG2ANTTLib_TLB.exDisableBoth); ScrollBySingleLine := True; Columns.Add('Def'); with Items do begin AddItem(OleVariant(1)); AddItem(OleVariant(2)); AddItem(OleVariant(3)); end; EndUpdate(); end |
| 169 |
I've seen that you can change the visual appearance for the scroll bar. How can I do that
|
| 168 |
Is there any option to highligth the column from the cursor - point
|
| 167 |
How do I change the visual aspect of selected item in the drop down filter window, using your EBN technology
|
| 166 |
How do I change the visual aspect of the drop down calendar window, that shows up if I click the drop down filter button, using EBN
|
| 165 |
How do I change the visual aspect of the close button in the filter bar, using EBN
|
| 164 |
How do I change the visual aspect of buttons in the cell, using EBN
|
| 163 |
How do I change the visual aspect of the drop down filter button, using EBN
|
| 162 |
How do I enable resizing the columns at runtime
with G2antt1 do begin ColumnsAllowSizing := True; MarkSearchColumn := False; HeaderVisible := EXG2ANTTLib_TLB.exHeaderHidden; Columns.Add('Column 1'); Columns.Add('Column 2'); DrawGridLines := EXG2ANTTLib_TLB.exVLines; with Items do begin CellValue[OleVariant(AddItem('Item 1')),OleVariant(1)] := 'Sub Item 1'; end; with Items do begin CellValue[OleVariant(AddItem('Item 2')),OleVariant(1)] := 'Sub Item 2'; end; end |
| 161 |
How can I select the second inner column when spliting the cells
with G2antt1 do begin SelectColumnInner := 1; FullRowSelect := EXG2ANTTLib_TLB.exColumnSel; DrawGridLines := EXG2ANTTLib_TLB.exAllLines; Columns.Add('Column'); with Items do begin CellValue[Null,SplitCell[OleVariant(AddItem('Split Cell 1.1')),OleVariant(0)]] := 'Split Cell 2.1'; CellValue[Null,SplitCell[OleVariant(AddItem('Split Cell 1.2')),OleVariant(0)]] := 'Split Cell 2.2'; SelectItem[FirstVisibleItem] := True; end; end |
| 160 |
How can I sort by multiple columns
|
| 159 |
How can I add several columns to control's sort bar
with G2antt1 do begin SortBarVisible := True; SortBarColumnWidth := 48; (IUnknown(Columns.Add('C1')) as EXG2ANTTLib_TLB.Column).SortOrder := EXG2ANTTLib_TLB.SortAscending; (IUnknown(Columns.Add('C2')) as EXG2ANTTLib_TLB.Column).SortOrder := EXG2ANTTLib_TLB.SortDescending; end |
| 158 |
How can I change the width of the columns being displayed in the sort bar
with G2antt1 do begin SortBarVisible := True; SortBarColumnWidth := 48; (IUnknown(Columns.Add('C1')) as EXG2ANTTLib_TLB.Column).SortOrder := EXG2ANTTLib_TLB.SortAscending; (IUnknown(Columns.Add('C2')) as EXG2ANTTLib_TLB.Column).SortOrder := EXG2ANTTLib_TLB.SortDescending; end |
| 157 |
How can I change the height of the sort bar's
with G2antt1 do begin SortBarVisible := True; SortBarHeight := 48; end |
| 156 |
How can I change the sort bar's foreground color
with G2antt1 do begin SortBarVisible := True; ForeColorSortBar := RGB(255,0,0); end |
| 155 |
How can I change the visual appearance of the control's sort bar, using EBN files
|
| 154 |
How can I change the sort bar's background color
with G2antt1 do begin SortBarVisible := True; BackColorSortBar := RGB(255,0,0); BackColorSortBarCaption := RGB(128,0,0); end |
| 153 |
How can I change the default caption being displayed in the control's sort bar
with G2antt1 do begin SortBarVisible := True; SortBarCaption := 'new caption'; end |
| 152 |
How can I show the locked / fixed items on the bottom side of the control
with G2antt1 do begin ShowLockedItems := True; Columns.Add('Column'); with Items do begin LockedItemCount[EXG2ANTTLib_TLB.exMiddle] := 2; CellValue[OleVariant(LockedItem[EXG2ANTTLib_TLB.exMiddle,0]),OleVariant(0)] := 'locked item 1'; CellValue[OleVariant(LockedItem[EXG2ANTTLib_TLB.exMiddle,1]),OleVariant(0)] := 'locked item 2'; AddItem('un-locked item'); end; end |
| 151 |
How can I show the locked / fixed items
with G2antt1 do begin ShowLockedItems := True; Columns.Add('Column'); with Items do begin LockedItemCount[EXG2ANTTLib_TLB.exTop] := 2; CellValue[OleVariant(LockedItem[EXG2ANTTLib_TLB.exTop,0]),OleVariant(0)] := 'locked item 1'; CellValue[OleVariant(LockedItem[EXG2ANTTLib_TLB.exTop,1]),OleVariant(0)] := 'locked item 2'; AddItem('un-locked item'); end; end |
| 150 |
How can I hide the locked / fixed items
with G2antt1 do begin ShowLockedItems := False; Columns.Add('Column'); with Items do begin LockedItemCount[EXG2ANTTLib_TLB.exTop] := 1; CellValue[OleVariant(LockedItem[EXG2ANTTLib_TLB.exTop,0]),OleVariant(0)] := 'locked item'; AddItem('un-locked item'); end; end |
| 149 |
How can I show the control's sort bar
with G2antt1 do begin SortBarVisible := True; end |
| 148 |
How can I stretch a picture on the control's header, when multiple levels are displayed, so it is not tiled
with G2antt1 do begin PictureLevelHeader := G2antt1.ExecuteTemplate('loadpicture(`c:\exontrol\images\colorize.gif`)'); PictureDisplayLevelHeader := EXG2ANTTLib_TLB.Stretch; (IUnknown(Columns.Add('S')) as EXG2ANTTLib_TLB.Column).Width := 32; (IUnknown(Columns.Add('Level 1')) as EXG2ANTTLib_TLB.Column).LevelKey := OleVariant(1); (IUnknown(Columns.Add('Level 2')) as EXG2ANTTLib_TLB.Column).LevelKey := OleVariant(1); (IUnknown(Columns.Add('Level 3')) as EXG2ANTTLib_TLB.Column).LevelKey := OleVariant(1); (IUnknown(Columns.Add('E1')) as EXG2ANTTLib_TLB.Column).Width := 32; (IUnknown(Columns.Add('E2')) as EXG2ANTTLib_TLB.Column).Width := 32; (IUnknown(Columns.Add('E3')) as EXG2ANTTLib_TLB.Column).Width := 32; (IUnknown(Columns.Add('E4')) as EXG2ANTTLib_TLB.Column).Width := 32; end |
| 147 |
How can I display a picture on the control's header, when multiple levels are displayed, so it is not tiled
with G2antt1 do begin PictureLevelHeader := G2antt1.ExecuteTemplate('loadpicture(`c:\exontrol\images\colorize.gif`)'); PictureDisplayLevelHeader := EXG2ANTTLib_TLB.MiddleRight; (IUnknown(Columns.Add('S')) as EXG2ANTTLib_TLB.Column).Width := 32; (IUnknown(Columns.Add('Level 1')) as EXG2ANTTLib_TLB.Column).LevelKey := OleVariant(1); (IUnknown(Columns.Add('Level 2')) as EXG2ANTTLib_TLB.Column).LevelKey := OleVariant(1); (IUnknown(Columns.Add('Level 3')) as EXG2ANTTLib_TLB.Column).LevelKey := OleVariant(1); (IUnknown(Columns.Add('E')) as EXG2ANTTLib_TLB.Column).Width := 32; end |
| 146 |
How can I display a picture on the control's header, when multiple levels are displayed
|
| 145 |
How can I change the header's background color, when multiple levels are displayed
with G2antt1 do begin BackColorLevelHeader := RGB(250,0,0); (IUnknown(Columns.Add('S')) as EXG2ANTTLib_TLB.Column).Width := 32; (IUnknown(Columns.Add('Level 1')) as EXG2ANTTLib_TLB.Column).LevelKey := OleVariant(1); (IUnknown(Columns.Add('Level 2')) as EXG2ANTTLib_TLB.Column).LevelKey := OleVariant(1); (IUnknown(Columns.Add('Level 3')) as EXG2ANTTLib_TLB.Column).LevelKey := OleVariant(1); end |
| 144 |
Can I programmatically scroll the control
|
| 143 |
How do I disable expanding or collapsing an item when user presses the arrow keys
with G2antt1 do begin ExpandOnKeys := False; LinesAtRoot := EXG2ANTTLib_TLB.exLinesAtRoot; Columns.Add('Column 1'); with Items do begin h := AddItem('Root'); InsertItem(h,Null,'Child 1'); InsertItem(h,Null,'Child 2'); ExpandItem[h] := True; end; end |
| 142 |
How do I expand automatically the items while user types characters to searching for something ( incremental searching )
with G2antt1 do begin ExpandOnSearch := True; LinesAtRoot := EXG2ANTTLib_TLB.exLinesAtRoot; AutoSearch := True; (IUnknown(Columns.Add('Column')) as EXG2ANTTLib_TLB.Column).AutoSearch := EXG2ANTTLib_TLB.exContains; with Items do begin InsertItem(InsertItem(AddItem('text'),Null,'some text'),Null,'another text'); InsertItem(InsertItem(AddItem('text'),Null,'some text'),Null,'another text'); end; end |
| 141 |
Can I programmatically scroll the control
|
| 140 |
Do you have some function to load data from a safe array
|
| 139 |
Do you have some function to retrieve all items to a safe array
|
| 138 |
How can still display the selected items when the control loses the focus
with G2antt1 do begin HideSelection := False; Columns.Add('Column'); with Items do begin AddItem('Item 3'); AddItem('Item 1'); SelectItem[AddItem('Item 2')] := True; end; end |
| 137 |
How can I hide a column
|
| 136 |
How can I ensure that a column is visible and fits the control's client area
with G2antt1 do begin ColumnAutoResize := False; (IUnknown(Columns.Add('1')) as EXG2ANTTLib_TLB.Column).Width := 128; (IUnknown(Columns.Add('2')) as EXG2ANTTLib_TLB.Column).Width := 128; (IUnknown(Columns.Add('3')) as EXG2ANTTLib_TLB.Column).Width := 128; (IUnknown(Columns.Add('4')) as EXG2ANTTLib_TLB.Column).Width := 128; (IUnknown(Columns.Add('5')) as EXG2ANTTLib_TLB.Column).Width := 128; EnsureVisibleColumn('5'); end |
| 135 |
I've seen that the width of the tooltip is variable. Can I make it larger
with G2antt1 do begin ToolTipWidth := 328; (IUnknown(Columns.Add('tootip')) as EXG2ANTTLib_TLB.Column).ToolTip := 'this is a tooltip that should be very very very very very very very long'; end |
| 134 |
How do I disable showing the tooltip for all control
with G2antt1 do begin ToolTipDelay := 0; (IUnknown(Columns.Add('tootip')) as EXG2ANTTLib_TLB.Column).ToolTip := 'this is a tooltip assigned to a column'; end |
| 133 |
How do I let the tooltip being displayed longer
with G2antt1 do begin ToolTipPopDelay := 10000; (IUnknown(Columns.Add('tootip')) as EXG2ANTTLib_TLB.Column).ToolTip := 'this is a tooltip assigned to a column'; end |
| 132 |
How do I show the tooltip quicker
with G2antt1 do begin ToolTipDelay := 1; (IUnknown(Columns.Add('tootip')) as EXG2ANTTLib_TLB.Column).ToolTip := 'this is a tooltip assigned to a column'; end |
| 131 |
How do I change the caption being displayed in the control's filter bar
|
| 130 |
How do I disable expanding or collapsing an item when user double clicks it
with G2antt1 do begin ExpandOnDblClick := False; LinesAtRoot := EXG2ANTTLib_TLB.exLinesAtRoot; Indent := 13; Columns.Add('Column 1'); with Items do begin h := AddItem('Root'); InsertItem(h,Null,'Child 1'); InsertItem(h,Null,'Child 2'); ExpandItem[h] := True; end; end |
| 129 |
How do I search case sensitive, using your incremental search feature
with G2antt1 do begin AutoSearch := True; ASCIILower := ''; with Columns do begin (IUnknown(Add('exStartWith')) as EXG2ANTTLib_TLB.Column).AutoSearch := EXG2ANTTLib_TLB.exStartWith; (IUnknown(Add('exContains')) as EXG2ANTTLib_TLB.Column).AutoSearch := EXG2ANTTLib_TLB.exContains; end; with Items do begin CellValue[OleVariant(AddItem('text')),OleVariant(1)] := 'another text'; end; with Items do begin CellValue[OleVariant(AddItem('text')),OleVariant(1)] := 'another text'; end; end |
| 128 |
How do I disable the control
with G2antt1 do begin Enabled := False; end |
| 127 |
How do I enable the incremental search feature within a column
with G2antt1 do begin AutoSearch := True; with Columns do begin (IUnknown(Add('exStartWith')) as EXG2ANTTLib_TLB.Column).AutoSearch := EXG2ANTTLib_TLB.exStartWith; (IUnknown(Add('exContains')) as EXG2ANTTLib_TLB.Column).AutoSearch := EXG2ANTTLib_TLB.exContains; end; with Items do begin CellValue[OleVariant(AddItem('text')),OleVariant(1)] := 'another text'; end; with Items do begin CellValue[OleVariant(AddItem('text')),OleVariant(1)] := 'another text'; end; end |
| 126 |
How do I call your x-script language
with G2antt1 do begin with (IUnknown(ExecuteTemplate('Columns.Add(`Column`)')) as EXG2ANTTLib_TLB.Column) do begin HeaderStrikeOut := True; HeaderBold := True; end; end |
| 125 |
How do I call your x-script language
|
| 124 |
How do I show alternate rows in different background color
|
| 123 |
How do I enlarge the drop down filter window
with G2antt1 do begin FilterBarDropDownHeight := -320; with (IUnknown(Columns.Add('Column')) as EXG2ANTTLib_TLB.Column) do begin DisplayFilterButton := True; FilterBarDropDownWidth := -320; end; Items.AddItem('Item 1'); Items.AddItem('Item 2'); end |
| 122 |
How do I filter programmatically the control
|
| 121 |
How do I change the font of the control's filterbar
with G2antt1 do begin FilterBarFont.Size := 20; with (IUnknown(Columns.Add('Column')) as EXG2ANTTLib_TLB.Column) do begin DisplayFilterButton := True; FilterType := EXG2ANTTLib_TLB.exBlanks; end; ApplyFilter(); end |
| 120 |
Can I apply an EBN skin to the control's filter bar so I can change its visual appearance
|
| 119 |
How do I change the background color of the control's filterbar
with G2antt1 do begin FilterBarBackColor := RGB(240,240,240); with (IUnknown(Columns.Add('Column')) as EXG2ANTTLib_TLB.Column) do begin DisplayFilterButton := True; FilterType := EXG2ANTTLib_TLB.exBlanks; end; ApplyFilter(); end |
| 118 |
How do I change the foreground color of the control's filterbar
|
| 117 |
How do I change the height of the control's filterbar
with G2antt1 do begin FilterBarHeight := 32; with (IUnknown(Columns.Add('Column')) as EXG2ANTTLib_TLB.Column) do begin DisplayFilterButton := True; FilterType := EXG2ANTTLib_TLB.exBlanks; end; ApplyFilter(); end |
| 116 |
How do I change the header's foreground color
with G2antt1 do begin ForeColorHeader := RGB(255,0,0); Columns.Add('Column 1'); Columns.Add('Column 2'); Items.AddItem('Item 1'); end |
| 115 |
I have a picture on the control's background, the question is how do I draw selection as semi-transparent
with G2antt1 do begin Picture := G2antt1.ExecuteTemplate('loadpicture(`c:\exontrol\images\zipdisk.gif`)'); SelBackMode := EXG2ANTTLib_TLB.exTransparent; Columns.Add('Column'); Items.AddItem('Item 1'); Items.AddItem('Item 2'); end |
| 114 |
It seems that the control uses the TAB key, is there any way to avoid that
with G2antt1 do begin UseTabKey := False; end |
| 113 |
I have FullRowSelect property on False, how do I force the user to select cells only in a specified column
with G2antt1 do begin SelectColumnIndex := 1; FullRowSelect := EXG2ANTTLib_TLB.exColumnSel; SelectColumn := True; Columns.Add('Column 1'); Columns.Add('Column 2'); with Items do begin CellValue[OleVariant(AddItem('Item 1')),OleVariant(1)] := 'SubItem 1'; end; end |
| 112 |
How do I assign a database to your control, using ADO, ADOR or ADODB objects
with G2antt1 do begin ColumnAutoResize := False; ContinueColumnScroll := False; rs := (IUnknown(ComObj.CreateComObject(ComObj.ProgIDToClassID('ADOR.Recordset'))) as ADODB_TLB.Recordset); with rs do begin Open('Orders','Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Program Files\Exontrol\ExG2antt\Sample\Access\misc.accdb',3,3,Null); end; DataSource := (IUnknown(rs) as ADODB_TLB.Recordset); end |
| 111 |
How do I change the visual appearance effect for the selected item, using EBN
with G2antt1 do begin VisualAppearance.Add(1,'c:\exontrol\images\normal.ebn'); SelBackColor := $1000000; SelForeColor := RGB(0,0,0); ShowFocusRect := False; Columns.Add('Column'); Items.AddItem(OleVariant(0)); Items.AddItem(OleVariant(1)); end |
| 110 |
How do I change the colors for the selected item
with G2antt1 do begin SelBackColor := RGB(0,0,0); Columns.Add('Column'); Items.AddItem(OleVariant(0)); Items.AddItem(OleVariant(1)); end |
| 109 |
How can I hide the frame/rectangle arround the focused item
with G2antt1 do begin BeginUpdate(); SelBackColor := BackColor; SelForeColor := ForeColor; ShowFocusRect := False; Columns.Add('Column'); Items.AddItem(OleVariant(0)); Items.AddItem(OleVariant(1)); Items.AddItem(''); EndUpdate(); end |
| 108 |
How can I change the control's font
|
| 107 |
I can't scroll to the end of the data. What can I do
with G2antt1 do begin ScrollBySingleLine := True; DrawGridLines := EXG2ANTTLib_TLB.exRowLines; Columns.Add('Column'); with Items do begin ItemHeight[AddItem(OleVariant(0))] := 13; end; PutItems(GetItems(OleVariant(0)),Null); with Items do begin ItemHeight[AddItem(OleVariant(1))] := 26; end; PutItems(GetItems(OleVariant(0)),Null); with Items do begin ItemHeight[AddItem(OleVariant(2))] := 36; end; PutItems(GetItems(OleVariant(0)),Null); with Items do begin ItemHeight[AddItem(OleVariant(3))] := 48; end; PutItems(GetItems(OleVariant(0)),Null); end |
| 106 |
How do I specify the column where the tree lines / hierarchy are shown
|
| 105 |
How do I specify the indentation of the child items relative to their parents
|
| 104 |
Is there any option to select an item using the right button of the mouse (rclick)
with G2antt1 do begin RClickSelect := True; Columns.Add('Column'); Items.AddItem('Item 1'); Items.AddItem('Item 2'); end |
| 103 |
I have FullRowSelect property on False, how do I select a column
with G2antt1 do begin SelectColumnIndex := 1; FullRowSelect := EXG2ANTTLib_TLB.exColumnSel; end |
| 102 |
How can I scroll columns one by one, not pixel by pixel
with G2antt1 do begin ContinueColumnScroll := False; ColumnAutoResize := False; (IUnknown(Columns.Add('1')) as EXG2ANTTLib_TLB.Column).Width := 128; (IUnknown(Columns.Add('2')) as EXG2ANTTLib_TLB.Column).Width := 128; (IUnknown(Columns.Add('3')) as EXG2ANTTLib_TLB.Column).Width := 128; (IUnknown(Columns.Add('4')) as EXG2ANTTLib_TLB.Column).Width := 128; (IUnknown(Columns.Add('5')) as EXG2ANTTLib_TLB.Column).Width := 128; end |
| 101 |
How can I enable multiple items selection
with G2antt1 do begin SingleSel := False; Columns.Add('Column'); Items.AddItem(OleVariant(0)); Items.AddItem(OleVariant(1)); Items.AddItem(OleVariant(2)); end |


















